package com.woniuxy.joylifeshop.service;

import com.woniuxy.common.entity.ShopCommodity;
import com.woniuxy.joylifeshop.dto.ObjectDto;

import java.util.List;

public interface CommodityService {

    List<ObjectDto> readCommodityByName(String name);


    ObjectDto readCommodityById(String id);

    ShopCommodity readCommodityByIdSimple(String comId);

    List<ShopCommodity> readCommoditysByMerchantId(String merchantId);


    ShopCommodity addOneCommodity(ShopCommodity shopCommodity);

    void addCommodityImgid(ShopCommodity shopCommodityAfter);


    void addSales(String comId, Long count);
}
